let fnArray = {
  afn: function (a, b) {
    console.log('hello ', a, b, 'this is a ')
  },
  bfn: function(c,d){
    console.log('hello',c,d,'this is b')
  }
}

let fn='afn'
let args = ['Lionel','Alex']
fnArray[fn](...args)
